package com.crane.oss.school.bean.request.teachercycle;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月26日 14时24分54秒
 */
@ApiModel(description = "修改参数")

@Getter
@Setter
@ToString

public class UpdateTeacherCycleReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "", name = "id")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "学年名称", name = "cycleName")
    @Size(max = 20, message = "cycleName长度超长")
    private String cycleName;

    @ApiModelProperty(value = "开始时间", name = "cycleStartTime")
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date cycleStartTime;

    @ApiModelProperty(value = "结束时间", name = "cycleEndTime")
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date cycleEndTime;

    @ApiModelProperty(value = "学期名称 1第一学期(上) 2 第二学期(下) ", name = "semester")
    @Size(max = 1, message = "semester长度超长")
    private String semester;

    @ApiModelProperty(value = "学校id", name = "partyId",hidden = true)
    private Long partyId;

}
